<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Record extends Model
{
    use HasFactory;
    protected $fillable = [
        'apply_id',
        'type'
    ];
    public static $_type = [
        1 => '到访', 2 => '离访'
    ];

    public function apply() {
        return $this->belongsTo(Apply::class, 'apply_id');
    }
}
